<%@ page import="com.myWeb.entity.Question" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/4/30
  Time: 15:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

<center>

    <form action="/myWeb/question/update" method="get">

        <table border="2">
            <tr>
                <td>题目编号:</td>
                <td><input type="text" name="questionId" value="${requestScope.key.questionId}" readOnly></td>
            </tr>
            <tr>
                <td>题目:</td>
                <td><input type="text" name="title" value="${requestScope.key.title}"></td>
            </tr>
            <tr>
                <td>A:</td>
                <td><input type="text" name="questionA" value="${requestScope.key.questionA}"></td>
            </tr>
            <tr>
                <td>B:</td>
                <td><input type="text" name="questionB" value="${requestScope.key.questionB}"></td>
            </tr>
            <tr>
                <td>C:</td>
                <td><input type="text" name="questionC" value="${requestScope.key.questionC}"></td>
            </tr>
            <tr>
                <td>D:</td>
                <td><input type="text" name="questionD" value="${requestScope.key.questionD}"></td>
            </tr>
            <tr>
                <td>正确答案:</td>
                <td>
                    <input type="radio" name="answer" value="A" ${"A" eq key.answer?"checked":""} />A
                    <input type="radio" name="answer" value="B" ${"B" eq key.answer?"checked":""} />B
                    <input type="radio" name="answer" value="C" ${"C" eq key.answer?"checked":""} />C
                    <input type="radio" name="answer" value="D" ${"D" eq key.answer?"checked":""} />D
                </td>
            </tr>
            <tr>
                <td><input type="submit" value="更新试题"/></td>
                <td><input type="reset"  value="清空"/></td>
            </tr>
        </table>
    </form>

</center>
</body>
</html>
